/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-13
 * Time:18:28
 */
public class main4 {
    public static boolean seacher(int[] arr)
    {
        int k=1;
        for(int i=0;i<arr.length;i++)
        {
            if(arr[i]%2!=0)
            {
                for(int c=i+1;c<arr.length;c++)
                {
                    if(arr[c]%2!=0) {
                        k++;
                    }
                    else  break;
                    if(k==3)
                        return true;
                }
            }
            k=1;
        }
        return false;
    }
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9};
        boolean k=seacher(arr);
        System.out.println(k);
    }
}
